package com.chrilwe.pigpig.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

import cn.chrilwe.autocreatetable.start.annotation.EnableAutoCreateTable;

/**
 * 认证模块
 * @author chrilwe
 * 2020-8-23
 */
@SpringBootApplication
@EnableFeignClients(basePackages = "com.chrilwe.pigpig.auth.client")
@MapperScan(basePackages = "com.chrilwe.pigpig.auth.mapper")
@EnableAutoCreateTable
@EnableAuthorizationServer
@EnableWebSecurity
public class AuthApplication {

	public static void main(String[] args) {
		SpringApplication.run(AuthApplication.class, args);
	}

}
